﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _004_继承
{
    internal class Boss:Enemy
    {
        int attack;
        int hp;
        public Boss(int attack,int hp,int speed)
        {
            this.attack = attack;
            this.hp = hp;//访问子类
            base.hp = hp;//访问父类
            this.speed = speed; 
        }

        public void Skill()
        {
            Console.WriteLine("Boss Skill");
        }
        public void Print()
        {
            Console.WriteLine("HP:"+hp);
            Console.WriteLine("Speed:" + speed);
            Console.WriteLine("Attack:" + attack);

        }
    }
}
